package pl.edu.uj.tcs.blef.protocol;

public class NoAwaitingPlayerError extends Request {
	private String playerNick;
	
	public NoAwaitingPlayerError(String message, RequestHandler handler) {
		super(message, handler);
		fill();
	}

	@Override
	protected void fill() {
		this.playerNick = message.split(" ")[message.split(" ").length-1];
		this.playerNick = this.playerNick.substring(0, playerNick.length()-2);
	}
	
	public String getPlayerNick(){
		return this.playerNick;
	}

}
